using Wolfpack.Core;
using Wolfpack.Core.Configuration;
using Wolfpack.Core.Interfaces.Entities;

namespace Wolfpack.Contrib.DashboardAdapter.Periscope
{
    public class PeriscopePushNotificationActivityDiscovery : PluginDiscoveryBase<PeriscopePushNotificationActivityConfig, PeriscopePushNotificationActivity>
    {
        protected override PeriscopePushNotificationActivityConfig GetConfiguration()
        {
            return new PeriscopePushNotificationActivityConfig
            {
                Url = "http://localhost:804",
                Enabled = true,
                FriendlyId = "MyPeriscopeDashboard",
                Description = "Another Periscope Dashboard!"
            };
        }

        protected override void Configure(ConfigurationEntry entry)
        {
            entry.Name = "PeriscopeDashboardPushActivity";
            entry.Description = "This is the activity creates a client connection to a Periscope dashboard; use it to push notifications formatted for Periscope widgets.";
            entry.Tags.AddIfMissing(SpecialTags.ACTIVITY, "Dashboard", "Realtime", "Periscope", "Client");
        }
    }
}